//
//  AppDelegate.m
//  OfferJob
//
//  Created by 郑州动力无限科技 on 2017/6/30.
//  Copyright © 2017年 郑州动力无限科技. All rights reserved.
//

#import "AppDelegate.h"
#import "FXTNewFetureViewController.h"
#import "FXTMainTabBarViewController.h"
#define kWXAppID @"wxda29608b8b590471"
#define IsFirstLaunch @"CFBundleVersion"
@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    [[UINavigationBar appearance]setBarTintColor:NavCOLOR];
    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
    self.window =[[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    [self initRootViewController];
    [self.window makeKeyAndVisible];
    return YES;
}
#pragma mark - Private Methods
- (void)initRootViewController
{
//    NSString *lastVersion =  [FXTUserDefaults getFromLocalString:IsFirstLaunch];
//    // 获得当前版本号
//    NSString *currentVersion = [NSBundle mainBundle].infoDictionary[IsFirstLaunch];
//    
//    if (![lastVersion isEqualToString:currentVersion]) {
//        FXTNewFetureViewController *newFeture =[[FXTNewFetureViewController alloc]init];
//        [self.window setRootViewController:newFeture];
//        // 保存新的版本号
//        [FXTUserDefaults saveLocalString:currentVersion andKey:IsFirstLaunch];
//    }
//    else
//    {
        self.window.rootViewController = [[FXTMainTabBarViewController alloc]init];
//    }
}


@end
